package etnorservice.etnor_service.domain.po;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/03/19/13:01
 **/
@Data
public class SystemMonitor {
    private CpuInfo cpu;
    private MemoryInfo memory;
    private NetworkInfo network;

    @Data
    public static class CpuInfo {
        private double usage;        // CPU使用率
        private int temperature;     // CPU温度
        private int coreCount;       // CPU核心数
        private String model;        // CPU型号
    }

    @Data
    public static class MemoryInfo {
        private long total;          // 总内存
        private long used;           // 已用内存
        private long free;           // 空闲内存
        private double usage;        // 使用率
    }

    @Data
    public static class NetworkInfo {
        private double uploadSpeed;   // 上传速度
        private double downloadSpeed; // 下载速度
        private long totalUpload;     // 总上传量
        private long totalDownload;   // 总下载量
    }
}
